#include "num.h"
#include "tag.h"
using namespace std;

Num::Num(int val):Token(Tag::NUM),val(val) {}

string Num::toString(void) const {
	return "<int,"+to_string(val)+">";
}

int Num::getVal(void) const {
	return val;
}

Num* Num::clone(void) const {
	return new Num(*this);
}
